package com.itheima.tlias.model.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author Lee
 * @created 2024/4/8
 * @describtion
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1701021629143340724L;

    /**
     * 总记录数
     */
    private Long total;
    /**
     * 一页数据
     */
    private List<T> rows;
}
